package com.demo.validation.body_validation;

import org.springframework.web.HttpMediaTypeNotAcceptableException;

import javax.validation.constraints.NotEmpty;

/**
 * @author ayatsuji
 * @date 2021-06-14 00:16
 * @since
 */
public class Q1 {
    @NotEmpty
    private String name;
    private Integer age;
    @NotEmpty
    private Integer[] scores;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setScores(Integer[] scores) {
        this.scores = scores;
    }

    public String getName() {
        return name;
}

    public Integer getAge() {
        return age;
    }

    public Integer[] getScores() {
        return scores;
    }
}
